import request from '@/utils/request'

// 查询不良品台账列表
export function listUnqualifiedRecord(query) {
  return request({
    url: '/qc/unqualifiedRecord/list',
    method: 'get',
    params: query
  })
}

// 查询不良品台账详细
export function getUnqualifiedRecord(id) {
  return request({
    url: '/qc/unqualifiedRecord/' + id,
    method: 'get'
  })
}

// 新增不良品台账
export function addUnqualifiedRecord(data) {
  return request({
    url: '/qc/unqualifiedRecord',
    method: 'post',
    data: data
  })
}

// 修改不良品台账
export function updateUnqualifiedRecord(data) {
  return request({
    url: '/qc/unqualifiedRecord',
    method: 'put',
    data: data
  })
}

// 删除不良品台账
export function delUnqualifiedRecord(id) {
  return request({
    url: '/qc/unqualifiedRecord/' + id,
    method: 'delete'
  })
}
